/**
 * Copyright &copy; 2012-2017 <a href="https://vivo.com">vivo</a> All rights reserved.
 */
package com.vivo.system.entity;

import org.hibernate.validator.constraints.Length;
import com.thinkgem.jeesite.modules.sys.entity.Office;
import com.thinkgem.jeesite.common.utils.excel.annotation.ExcelField;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 员工兼职Entity
 * @author jyangye
 * @version 2018-03-22
 */
public class VivoPartTimeJob extends DataEntity<VivoPartTimeJob> {
	
	private static final long serialVersionUID = 1L;
	private String employeeId;		// 员工ID
	private Office comp;		// 组织机构
	private Office dept;		// 部门
	private Office post;		// 岗位
	private String status;		// 状态
	private String isExp;		// 是否总部外派
	private String operator;		// operator

    private String name; // 员工姓名
	
	public VivoPartTimeJob() {
		super();
	}

	public VivoPartTimeJob(String id){
		super(id);
	}


	public String getEmployeeId() {
		return employeeId;
	}

	public void setEmployeeId(String employeeId) {
		this.employeeId = employeeId;
	}


    @ExcelField(title="员工姓名", align=2, sort=20)
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @ExcelField(title="组织机构", align=2, sort=30)
	public Office getComp() {
		return comp;
	}

	public void setComp(Office comp) {
		this.comp = comp;
	}
	
	@ExcelField(title="部门", align=2, sort=40)
	public Office getDept() {
		return dept;
	}

	public void setDept(Office dept) {
		this.dept = dept;
	}
	
	@ExcelField(title="岗位", align=2, sort=50)
	public Office getPost() {
		return post;
	}

	public void setPost(Office post) {
		this.post = post;
	}
	
	@Length(min=0, max=1, message="状态长度必须介于 0 和 1 之间")
	@ExcelField(title="状态", align=2, sort=60)
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	@Length(min=0, max=1, message="是否总部外派长度必须介于 0 和 1 之间")
	@ExcelField(title="是否总部外派", align=2, sort=70)
	public String getIsExp() {
		return isExp;
	}

	public void setIsExp(String isExp) {
		this.isExp = isExp;
	}
	
	@Length(min=0, max=32, message="operator长度必须介于 0 和 32 之间")
	@ExcelField(title="operator", align=2, sort=80)
	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}
	
}